package java_1_8.interface_test.capacity;

public class Frog extends Animal implements IRun,ISwim{
    public Frog(String name) {
        super(name);
    }

    @Override
    public void eat(String food) {
        System.out.println(this.name+"正在吃"+food);
    }

    @Override
    public void run() {
        System.out.println(this.name+"正在河边跳");
    }

    @Override
    public void swim() {
        System.out.println(this.name+"正在蛙泳");

    }
}
